package ru.hh.team02.chat.messaging;

public class PersonalMessage implements Message {
    private final String text;
    private int Id;

    public String getText() {
            return " " + Id + " " + text;
    }

    public boolean isPersonal() {
        return true;
    }

    /**
     * Create a message.
     *
     * @param text
     *            Message text
     */
    public PersonalMessage(String text, int Id) {
        this.text = text;
        this.Id = Id;
    }

}
